package com.pdsu.graduation_design.dto;


public class CommodityDTO {
    private int cid;
    private int uid;
    private String cname;
    private String cmessage;
    private int cnumber;
    private String image;
    private String date;
    private Double price;

    //++

    private String username;
    private Double user_miaoshu;
    private Double user_taidu;
    private Double user_sudu;

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCmessage() {
        return cmessage;
    }

    public void setCmessage(String cmessage) {
        this.cmessage = cmessage;
    }

    public int getCnumber() {
        return cnumber;
    }

    public void setCnumber(int cnumber) {
        this.cnumber = cnumber;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Double getUser_miaoshu() {
        return user_miaoshu;
    }

    public void setUser_miaoshu(Double user_miaoshu) {
        this.user_miaoshu = user_miaoshu;
    }

    public Double getUser_taidu() {
        return user_taidu;
    }

    public void setUser_taidu(Double user_taidu) {
        this.user_taidu = user_taidu;
    }

    public Double getUser_sudu() {
        return user_sudu;
    }

    public void setUser_sudu(Double user_sudu) {
        this.user_sudu = user_sudu;
    }

    public CommodityDTO() {
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }


    @Override
    public String toString() {
        return "CommodityDTO{" +
                "cid=" + cid +
                ", uid=" + uid +
                ", cname='" + cname + '\'' +
                ", cmessage='" + cmessage + '\'' +
                ", cnumber=" + cnumber +
                ", image='" + image + '\'' +
                ", date='" + date + '\'' +
                ", price=" + price +
                ", username='" + username + '\'' +
                ", user_miaoshu=" + user_miaoshu +
                ", user_taidu=" + user_taidu +
                ", user_sudu=" + user_sudu +
                '}';
    }

    public CommodityDTO(int cid, int uid, String cname, String cmessage, int cnumber, String image, String date, Double price, String username, Double user_miaoshu, Double user_taidu, Double user_sudu) {
        this.cid = cid;
        this.uid = uid;
        this.cname = cname;
        this.cmessage = cmessage;
        this.cnumber = cnumber;
        this.image = image;
        this.date = date;
        this.price = price;
        this.username = username;
        this.user_miaoshu = user_miaoshu;
        this.user_taidu = user_taidu;
        this.user_sudu = user_sudu;
    }
}
